//
//  PreTestVC.swift
//  Auscultation
//
//  Created by zwb on 2021/3/30.
//

import UIKit

class PreTestVC: BaseVC {

    @IBOutlet weak var timeL: UILabel!
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
        let top_view = UIImageView()
        top_view.image = UIImage(named: "table2")
        top_view.isUserInteractionEnabled = true
        self.view.addSubview(top_view)
        top_view.snp.makeConstraints { (make) in
            make.top.left.right.equalToSuperview()
            make.height.equalTo(UIDevice.lgf_NavBarH())
        }
        self.navTitle = "等级测评"
        self.lgf_NavigationBar.lgf_Reload()

       _ = dispatchTimer(timeInterval: 1, repeatCount: 4) { (timer, lastTime) in
            self.timeL.text = "\(lastTime)"
            if lastTime == 0{
                self.navigationController?.pushViewController(TestQuestionVC(), animated: true)
            }else{
            }
        }
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
    }

    
}
